package com.zbkj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.TransferOrder;
import com.zbkj.common.model.TransferOrderDetails;
import com.zbkj.common.request.*;
import com.zbkj.common.response.SaleRoomOrWarehouseResponse;
import com.zbkj.common.response.TransferOrderProductAttrValueResponse;

import java.util.List;

/**
 * @author keNan
 * @description TransferOrderService 接口
 * @date 2025-06-12
 */
public interface TransferOrderService extends IService<TransferOrder> {

    List<TransferOrder> getList(TransferOrderSearchRequest request, PageParamRequest pageParamRequest);

    /**
     * 新增门店、仓库调货单
     *
     * @param transferOrderRequest
     * @return
     */
    Boolean addTransferOrder(TransferOrderRequest transferOrderRequest);

    /**
     * 新增调货单-查询商品规格
     *
     * @param productAttrValueSearchRequest
     * @return
     */
    PageInfo<TransferOrderProductAttrValueResponse> selectProductAttrValueList(ProductAttrValueSearchRequest productAttrValueSearchRequest);


    /**
     * 查询门店、仓库调货单详情信息
     *
     * @param idRequest
     * @return
     */
    PageInfo<TransferOrderDetails> info(IdRequest idRequest);

    /**
     * 审核
     *
     * @param reviewRequest
     * @return
     */
    Boolean review(ReviewRequest reviewRequest);

    /**
     * 根据类型分页查询仓库或者门店
     *
     * @param typeRequest
     * @return
     */
    PageInfo<SaleRoomOrWarehouseResponse> listByType(TypeRequest typeRequest);

}